<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCommentsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('comments', function (Blueprint $table) {
            $table->integer('siteid')->comment('站点id');
            $table->string('title')->comment('活动标题');
            $table->string('url')->comment('页面url');
            $table->integer('total')->comment('留言数');
            $table->integer('square')->comment('正方1');
            $table->integer('anti')->comment('反对方向2');
            $table->integer('neutral')->comment('中立方向3');
            $table->integer('display_type')->comment('是否显示0不显示,1显示');
            $table->integer('tableid')->comment('表id');
            $table->dateTime('lastupdate')->comment('更新时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
       Schema::drop('comments');
    }
}
